# 导包
import unittest
from lib.HTMLTestRunnerCN import HTMLTestReportCN
# 组装测试套件
from script.login_case import Test_login
import time
import app

suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(Test_login))
# 指定报告名称及路径
file = app.dir + "/report/report.html"

# 打开文件流
with open(file, "wb")as f:
    runner = HTMLTestReportCN(f)
    # 创建runner

    # 运行suite
    runner.run(suite)
